<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>蓝</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="icon" href="">
    <link rel="stylesheet" href="/static/index/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/index/font-awesome/css/font-awesome.min.css">
    <script src="/static/index/js/jquery.min.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-md sticky-top navbar-light bg-white shadow">
    <a class="navbar-brand" href=""><img src="" height="30" class="d-inline-block align-top mr-2"></a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent">
        <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav">
            {if condition="$Request.session.username neq ''"}
            <li class="nav-item dropdown">
                <a class="nav-link dropdown-toggle" href="#" id="navbarDropdowny" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                    <img src="{$touxiang}" height="20" class="rounded-circle">&nbsp;{$nicheng}
                </a>
                <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdowny" style="z-index: 1100">
                    <a class="dropdown-item" href="{$url.yonghuzhongxin}">用户中心</a>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item" href="{$url.tuichu}">退出</a>
                </div>
            </li>
            {else /}
            <li class="nav-item">
                <a class="nav-link" href="{:url('index/user/register')}">注册</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="{:url('index/user/login')}">登录</a>
            </li>
            {/if}
        </ul>
    </div>
</nav>
